import { createRouter, createWebHashHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";

const routes = [
  {
    path: "/",
    name: "home",
    component: HomeView,
  },
  {
    path: "/about",
    name: "about",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/AboutView.vue"),
  },
  {
    path: "/sellerpage",
    name: "sellerPage",
    component: () => import('../views/SellerPage.vue'),
  },
  {
    path: "/trendpage",
    name: "trendPage",
    component: () => import('../views/TrendPage.vue'),
  },
  {
    path: "/mappage",
    name: "mappage",
    component: () => import('../views/MapPage.vue'),
  },
  {
    path: "/rankpage",
    name: "rankpage",
    component: () => import('../views/RankPage.vue'),
  },
  {
    path: "/hotpage",
    name: "hot",
    component: () => import('../views/HotPapge.vue'),
  },
  {
    path: "/stockpage",
    name: "stockpage",
    component: () => import('../views/StockPage.vue'),
  },
  {
    path: "/screen",
    name: "screen",
    component: () => import('../views/ScreenPage.vue'),
  }
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
